import { createRouter, createWebHistory } from "vue-router"
import HomeView from "../views/HomeView.vue"
import MyView from "@/views/MyView.vue"
import ForumView from "@/views/ForumView.vue"
import Cartview from "@/views/Cartview.vue"

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "home",
      component: HomeView,
    },
    {
      path: "/my",
      name: "my",
      component: MyView,
    },
    {
      path: "/cart",
      name: "cart",
      component: Cartview,
    },
    {
      path: "/forum",
      name: "forum",

      component: ForumView,
    },
  ],
})

export default router
